package agenda;

import java.util.TimerTask;

public class Notification extends TimerTask {

	private Entry entry;
	
	public Notification(Entry entry){
		this.entry = entry;
	}
	
	@Override
	public void run() {
		System.out.println("Notification: " + this.getEntry().getSubject()+ "starts in 15 minutes.");
	}
	
	public Entry getEntry(){
		return this.entry;
	}
}
